package sample.plugin.menu.editor;

import android.graphics.drawable.Drawable;
import android.widget.Toast;

import com.rapid.api.component.widget.editor.Editor;
import com.rapid.api.framework.domain.editor.BaseEditorMenuAction;

public class TestEditorTextMenu1 extends BaseEditorMenuAction {
    @Override
    public String getId() {
        return "test1";
    }

    @Override
    public String getTitle() {
        return "测试1";
    }

    @Override
    public Drawable getIcon() {
        return null;
    }

    @Override
    public void perform(Editor editor) {
        Toast.makeText(getActivity(), editor.getSelectedText(), Toast.LENGTH_SHORT).show();
    }
}
